﻿@namespace MatBlazor
@using Microsoft.AspNetCore.Components.Web
@*@implements IDisposable*@
@typeparam TNode


<CascadingValue Value="@this">
    <div class="mat-tree @Class" role="tree">
        <ul>
            @foreach (TNode rootNode in this.RootNodes)
            {
                <MatTreeNode @key="@rootNode" TNode="TNode"
                               IsSelected="@IsNodeSelected(rootNode)" Node="@rootNode" />
            }
        </ul>
    </div>
</CascadingValue>
